package com.relytosoft.mizar.media.system.api.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.relytosoft.dubhe.common.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

/**
 * 安全级别
 *
 * @Author SunLi
 * @Date: 2022/4/6 12:40
 * @Version 1.0
 */
@TableName("SYS_SECURITY_LEVEL")
@ApiModel("SysSecurityLevel")
public class SysSecurityLevel extends BaseEntity {

    private static final long serialVersionUID = 9007425942009615041L;

    /**
     * 主键
     */
    @TableId(value="ID", type= IdType.AUTO)
    private Integer id;

    /**
     * 安全级别名称
     */
    @ApiModelProperty(value = "安全级别名称", required = true)
    @TableField("NAME")
    @NotBlank(message = "安全级别名称不能为空")
    private String name;

    /**
     * 安全级别颜色
     */
    @ApiModelProperty(value = "安全级别颜色", required = true)
    @TableField("COLOR")
    @NotBlank(message = "安全级别颜色不能为空")
    private String color;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @TableField("SORT")
    private Integer sort;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    @TableField("REMARK")
    private String remark;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    @TableField("STATUS")
    private Integer status;


    /**
     * 获得安全级别ID
     */
    public Integer getId(){
        return this.id;
    }
    /**
     * 设置安全级别ID
     */
    public void setId(Integer id){
        this.id = id;
    }

    /**
     * 获得安全级别名称
     */
    public String getName(){
        return this.name;
    }
    /**
     * 设置安全级别名称
     */
    public void setName(String name){
        this.name = name;
    }

    /**
     * 获得安全级别颜色
     */
    public String getColor(){
        return this.color;
    }
    /**
     * 设置安全级别颜色
     */
    public void setColor(String color){
        this.color = color;
    }

    /**
     * 获得排序
     */
    public Integer getSort(){
        return this.sort;
    }
    /**
     * 设置排序
     */
    public void setSort(Integer sort){
        this.sort = sort;
    }

    /**
     * 获得描述
     */
    public String getRemark(){
        return this.remark;
    }
    /**
     * 设置描述
     */
    public void setRemark(String remark){
        this.remark = remark;
    }

    /**
     * 获得状态
     */
    public Integer getStatus(){
        return this.status;
    }
    /**
     * 设置状态
     */
    public void setStatus(Integer status){
        this.status = status;
    }

    @Override
    public String toString() {
        return "SysSecurityLevel{id="+id+
                ",name="+name+
                ",color="+color+
                ",sort="+sort+
                ",remark="+remark+
                ",status="+status+
                ",createdId="+createdId+
                ",createdBy="+createdBy+
                ",createdTime="+createdTime+
                ",updatedId="+updatedId+
                ",updatedBy="+updatedBy+
                ",updatedTime="+updatedTime+
                "}";
    }
}
